<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<!-- container-fluid -->
	<head>
		<title>设备管理系统</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/uniform.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/select2.css" />		
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/unicorn.main.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/mycustom.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/unicorn.grey.css" class="skin-color" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<body>
		<%@ include file="/WEB-INF/jsp/public/topMenu.jspf" %>  
		<div id="sidebar">
			<a href="index.jsp" class="visible-phone"><i class="icon icon-home"></i> 首页</a>
			<ul>
				<li class="active"><a href="index.jsp"><i class="icon icon-home"></i> <span>首页</span></a></li>
				<s:iterator value="#application.topPrivilegeList">
				     <s:if test="#session.user.hasPrivilegeByName(name)">
				        <s:if test="%{name == '系统管理'}">
							<li class="active submenu open">
								<a href="#"><i class="${imgClass}"></i> <span>${name}</span> </a>
								<ul>
								    <s:iterator value="children">
								    <s:if test="#session.user.hasPrivilegeByName(name)">
								    <s:if test="%{name == '用户管理'}">						    
									    <li class="active"><a href="${pageContext.request.contextPath}${url}.action">${name}</a></li>
									</s:if>	
									<s:else>
						     		    <li><a href="${pageContext.request.contextPath}${url}.action">${name}</a></li>
									</s:else>	
									</s:if>
									</s:iterator>
								</ul>
							</li>
						</s:if>
						<s:else>
						    <li class="submenu">
								<a href="#"><i class="${imgClass}"></i> <span>${name}</span> </a>
								<ul>
								    <s:iterator value="children">	
								    <s:if test="#session.user.hasPrivilegeByName(name)">							    
									<li><a href="${pageContext.request.contextPath}${url}.action">${name}</a></li>
									</s:if>
									</s:iterator>
								</ul>
							</li>
						</s:else>
					</s:if>
				</s:iterator>
				
			</ul>
		
		</div>
		
		<div id="style-switcher">
			<i class="icon-arrow-left icon-white"></i>
			<span>主题:</span>
			<a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
			<a href="#blue" style="background-color: #2D2F57;"></a>
			<a href="#red" style="background-color: #673232;"></a>
		</div>
		
		<div id="content">
			<div id="content-header">
				<h1>控制台</h1>

			</div>
			<div id="breadcrumb">
				<a href="index.jsp" title="回到主页" class="tip-bottom"><i class="icon-home"></i> 首页</a>
				<a href="user_list.action" title="用户管理" class="current">用户管理</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
						<div class="span12">
							<div class="widget-box">
								<div class="widget-title">
									<span class="icon">
										<i class="icon-align-justify"></i>									
									</span>
									<h5>重置密码</h5>
								</div>
								<div class="widget-content nopadding">
								 
									<s:form cssClass="form-horizontal" method="post" action="user_changePassword" name="password_validate" id="password_validate" novalidate="novalidate" >
										<s:hidden name="id"></s:hidden>
										<div class="control-group">
											<h6 class="position_left"><font color="red"><s:fielderror fieldName="pswError"/></font></h6>
									
										</div>
										<div class="control-group">
											<label class="control-label">原密码：</label>
											<div class="controls">
												<s:password type="password" name="oldPassword" id="oldPassword" />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">新密码：</label>
											<div class="controls">
												<s:password type="password" name="password" id="password" />
											</div>
										</div>
										<div class="control-group">
											<label class="control-label">重新输入：</label>
											<div class="controls">
												<s:password type="password" name="pwd2" id="pwd2" />
											</div>
										</div>
										<div class="form-actions">
											　　<input type="reset" value="重置" class="btn btn-success" />　　　
											<input type="submit" value="提交" class="btn btn-primary" />
										</div>
									</s:form>
								</div>
							</div>
						</div>			
					</div>
				<div class="row-fluid">
					<div id="footer" class="span12">
						2015 &copy; 郑州轻工业学院 </div>
				</div>
			</div>
		</div>
		

            <script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.ui.custom.js"></script>
            <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.uniform.js"></script>
            <script src="${pageContext.request.contextPath}/js/select2.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.dataTables.min.js"></script>
            <script src="${pageContext.request.contextPath}/js/unicorn.js"></script>
            <script src="${pageContext.request.contextPath}/js/unicorn.tables.js"></script>
            <script src="${pageContext.request.contextPath}/js/unicorn.form_validation.js"></script>
            <script src="${pageContext.request.contextPath}/js/jquery.validate.js"></script>
	</body>
</html>
